import request from '@/utils/request.js'

// 员工列表
export function staffList(data) {
    return request({
        url: '/njnzzs/merchant/staff/list',
        method: 'GET',
        data
    })
}

// 员工 add
export function staffRegister(data, query = '') {
    return request({
        url: '/njnzzs/merchant/staff/register' + query,
        method: 'POST',
        data
    })
}

// 员工 delete
export function staffDelete(id) {
    return request({
        url: `/njnzzs/merchant/staff/${id}`,
        method: 'DELETE'
    })
}